﻿using Docker.Admin.Application.build;
using Docker.Admin.Application.Contract.build;
using Docker.DotNet;
using Microsoft.Extensions.DependencyInjection;

namespace Docker.Admin.Application;

public static class DockerAdminApplicationExtension
{
    public static void AddDockerAdminApplication(this IServiceCollection services)
    {
        services.AddSingleton(new DockerClientConfiguration()
            .CreateClient());

        services.AddTransient<IBuildService,BuildService>();
    }
}